::ip2region golang maker makefile in windows
@echo off  

if [%1] == [] goto:build   REM 如果参数个数为空，则执行build任务

if %1==clean (   REM 如果参数为clean，则执行clean任务
    call:clean
) else if %1==build (   REM 如果参数为build，则执行build任务
    call:build
)
exit /b 0   REM 退出脚本并返回状态码0

:build
go build -o xdb_maker.exe
exit /b 0

:clean
del/f/s/q xdb_maker.exe
